<%@ Page Title="" Language="C#" MasterPageFile="~/Themes/Default/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>
<%@ Import Namespace="MvcContrib.UI.Html" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	<%=Html.Resource("ROLE", "CREATEROLE")%>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<form id="form1" action="/Role/Create" method="post">
    <h2><%=Html.Resource("ROLE", "CREATEROLE")%></h2>
    <div class="tabcontainer">
    <input type="submit" value="<% =Html.Resource("Global","SAVE") %>" name="btnSave" class="button" accesskey="S"/>
    <input type="button" value="<% =Html.Resource("Global","CLEAR") %>" name="btnClear" class="button" accesskey="C"/>
    <input type="button" value="<% =Html.Resource("Global","CANCEL") %>" name="btnCancel" class="button" accesskey="X" onclick="redirectToAction('Role','Index')"/>
    </div>
    <% =Html.RenderForm(ViewData.Model)%>
    <div class="tabcontainer">
    <input type="submit" value="<% =Html.Resource("Global","SAVE") %>" name="btnSave" class="button" accesskey="S"/>
    <input type="button" value="<% =Html.Resource("Global","CLEAR") %>" name="btnClear" class="button" accesskey="C"/>
    <input type="button" value="<% =Html.Resource("Global","CANCEL") %>" name="btnCancel" class="button" accesskey="X" onclick="redirectToAction('Role','Index')"/>
    </div>
</form>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="HeadContent" runat="server">
<%=Html.jQueryValidateScriptInclude() %>
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="PostScript" runat="server">
    <script type="text/javascript" language="javascript">
        $(document).ready(function() {
            $("input[name='btnClear']").click(function() { clearFormFields("#form1"); });
        });
    </script>
</asp:Content>
